function close(){
	var index=parent.layer.getFrameIndex(window.name);
	parent.layer.close(index);
	parent.$("#btnSearch").trigger("click");
}

function form2Json(id) {
	 
    var arr = $("#" + id).serializeArray();
    var jsonStr = "";

    jsonStr += '{';
    for (var i = 0; i < arr.length; i++) {
        jsonStr += '"' + arr[i].name + '":"' + arr[i].value + '",'
    }
    jsonStr = jsonStr.substring(0, (jsonStr.length - 1));
    jsonStr += '}'

    var json = JSON.parse(jsonStr)
    return json
}

function booleanFormat(value, row, index){
	if(value){
		return '<input type="checkbox" checked disabled/>';
	} else {
		return '<input type="checkbox" disabled/>';
	}
}